<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link  rel="stylesheet" href="/Public/Admin/css/bootstrap.min.css">
</head>
<body>
<div class="container">
    <?php if(empty($data)): ?><h1>你还没有购买任何东西呢，赶快去逛逛吧</h1>
        <?php else: ?>
    <h2 style="text-align: center;">我的订单</h2>

    <table class="table table-hover">
        <thead>
        <tr>
            <th>商品</th>
            <th>数量</th>
            <th>金额</th>
            <th>地址</th>
            <th>电话</th>
            <th>下单时间</th>
        </tr>
        </thead>
        <tbody>
        <?php if(is_array($data)): $i = 0; $__LIST__ = $data;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vol): $mod = ($i % 2 );++$i;?><tr>

            <td><?php echo ($vol["spname"]); ?></td>
            <td><?php echo ($vol["number"]); ?></td>
            <td><?php echo ($vol["price"]); ?></td>
            <td><?php echo ($vol["address"]); ?></td>
            <td><?php echo ($vol["tel"]); ?></td>
            <td><?php echo (date("Y-m-d H:i:s",$vol["xd_time"])); ?></td>
        </tr><?php endforeach; endif; else: echo "" ;endif; ?>
        </tbody>
    </table>
    <button type="button" class="btn btn-info" onclick="window.location.href='/index.php/Home/Index/index'">返回</button><?php endif; ?>
</div>

</body>
</html>